package com.wang.util;

import java.util.List;

public class Page<T> {

    private int total;
    private int page;
    private int size;
    private int totalPage;

    private int start;
    private List<T> list;

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "Page [total=" + total + ", page=" + page + ", size=" + size + ", totalPage=" + totalPage + ", start="
                + start + ", list=" + list + "]";
    }

}
